package com.wopinla.service.impl;
import com.wopinla.dao.ExampleDao;
import com.wopinla.pojo.*;
import com.wopinla.dao.TypeDao;
import com.wopinla.pojo.type;
import com.wopinla.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service   //添加注解
public class TypeServiceImpl implements TypeService{

    //注入dao层（调用dao）
    @Autowired
    private TypeDao typeDao;

    @Override
    public int addtype(Map<String, Object> map)
    {
        return  typeDao.addtype(map);
    }

    @Override
    public int deletetype(Map<String, Object> map)
    {
        return  typeDao.deletetype(map);
    }
    @Override
    public List<type> alltype()
    {
        return typeDao.alltype();

    }
}
